﻿using IMES.Common.Dtos;
using MediatR;

namespace Darius.API.Application.Commands.Order
{
    public class OrderCreateCommand : IRequest<Result>
    {
        /// <summary>
        /// 订单编号
        /// </summary>
        public string OrderNo { get; set; }
        /// <summary>
        /// 订单备注
        /// </summary>
        public string OrderNotes { get; set; }
        public List<OrderDetailDto> OrderDetails { get; set; }
      
        /// <summary>
        /// 创建人名
        /// </summary>
        public string CreateName { get; set; }
        /// <summary>
        /// 创建时间
        /// </summary>
        public DateTime CreateDate { get; set; }

    }
    public class OrderDetailDto
    {
     
        public int OrderDetailId { get; set; }
        /// <summary>
        /// 订单编号
        /// </summary>
        public int OrderId { get; set; }
        /// <summary>
        /// 产品编号
        /// </summary>
        public string ProductNumber { get; set; }
        /// <summary>
        /// 工单
        /// </summary>
        public string? WorkOrder { get; set; }
        /// <summary>
        /// 完成数
        /// </summary>
        public int FinishNum { get; set; }
        /// <summary>
        /// 产品数量
        /// </summary>
        public int ProductNum { get; set; }
        public bool IsDeleted { get; set; }
    }
}

